package com.cskaoyan.wx.bean.vo;

import com.cskaoyan.bean.Cart;
import lombok.Data;

import java.util.List;

@Data
public class WxCartIndexVo {

    /**
     * cartTotal : {"goodsCount":9,"checkedGoodsCount":4,"goodsAmount":5791,"checkedGoodsAmount":4296}
     * cartList : [{"id":79,"userId":1,"goodsId":1152031,"goodsSn":"1152031","goodsName":"魔兽世界-伊利丹颈枕眼罩套装","productId":234,"price":99,"number":3,"specifications":["标准"],"checked":true,"picUrl":"http://yanxuan.nosdn.127.net/fd6e78a397bd9e9804116a36f0270b0a.png","addTime":"2021-04-12 14:15:14","updateTime":"2021-04-12 14:15:14","deleted":false},{"id":80,"userId":1,"goodsId":1022000,"goodsSn":"1022000","goodsName":"意式毛线绣球四件套","productId":31,"price":299,"number":5,"specifications":["标准"],"checked":false,"picUrl":"http://yanxuan.nosdn.127.net/5350e35e6f22165f38928f3c2c52ac57.png","addTime":"2021-04-12 14:15:22","updateTime":"2021-04-12 14:15:27","deleted":false},{"id":81,"userId":1,"goodsId":1109008,"goodsSn":"1109008","goodsName":"云端沙发组合","productId":140,"price":3999,"number":1,"specifications":["标准"],"checked":true,"picUrl":"http://yanxuan.nosdn.127.net/c5be2604c0e4186a4e7079feeb742cee.png","addTime":"2021-04-12 14:15:34","updateTime":"2021-04-12 14:15:34","deleted":false}]
     */

    private CartTotalBean cartTotal;
    private List<Cart> cartList;


    public static class CartTotalBean {
        /**
         * goodsCount : 9
         * checkedGoodsCount : 4
         * goodsAmount : 5791.0
         * checkedGoodsAmount : 4296.0
         */

        private int goodsCount;
        private int checkedGoodsCount;
        private double goodsAmount;
        private double checkedGoodsAmount;

        public int getGoodsCount() {
            return goodsCount;
        }

        public void setGoodsCount(int goodsCount) {
            this.goodsCount = goodsCount;
        }

        public int getCheckedGoodsCount() {
            return checkedGoodsCount;
        }

        public void setCheckedGoodsCount(int checkedGoodsCount) {
            this.checkedGoodsCount = checkedGoodsCount;
        }

        public double getGoodsAmount() {
            return goodsAmount;
        }

        public void setGoodsAmount(double goodsAmount) {
            this.goodsAmount = goodsAmount;
        }

        public double getCheckedGoodsAmount() {
            return checkedGoodsAmount;
        }

        public void setCheckedGoodsAmount(double checkedGoodsAmount) {
            this.checkedGoodsAmount = checkedGoodsAmount;
        }
    }
}
